

<template>
  <h2 id="title2">app.vue中的h2</h2>
  <!-- <h2 id="title2">app.vue中的h2</h2> -->
  <button @click="showMsg">点击输出ren</button>
  <Person ref="ren" />
</template>

<script setup lang="ts" name="App">
import Person from '@/components/test.vue'
import { ref } from 'vue'
let ren = ref()
const showMsg = () => {
  console.log(ren.value)
}
</script>

<style scoped>
.app {
  background-color: #ddd;
  box-shadow: 0 0 10px;
  padding: 20px;
}
</style>
